package javase2.day04;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class Demo5 {
	public static void main(String[] args) throws IOException{
		String file = "/home/tarena/hotel.txt";
		InputStreamReader in = new InputStreamReader(new FileInputStream(file),"gbk");
		int c;
		while((c=in.read())!=-1){
			System.out.print((char)c);
		}
		in.close();
	}
}
